<html>
<head>
<link href="loginmodule.css" rel="stylesheet" type="text/css" />
<script language=javascript>
    function val() {
         
    if(document.form1.moviename.value=="") {
      alert("Enter the movie name");
      return false;
    } else if(document.form1.Mrating.value=="") {
       alert("Select movie rating");
       return false;
    }  else
      return true;
}
  </script>
<center><h2> Movie Insert Form</h2> </center>
<style type="text/css">
div{
position:fixed;
top: 10px;
right:10px;
}
h1{
position:fixed;
top: 70px;
left:380px;
}

#one{
position:fixed;
top: 120px;
left:340px;
}
#two{
position:fixed;
top: 160px;
left:325px;
}
</style>
</head>
<body>

<table align="center">
<tr><td><a href="admin.php">Home</a> | <a href="movielist.php">Movie List</a> | <a href="moviedeleteform.php">Movie Delete</a> | <a href="movie-feedback.php">Leave Feedback</a> | <a href="search-feedback.php">Read Feedback</a> | <a href="directions.html">Directions</a> | <a href="contactus.php">Contact Us</a> | <a href="logout.php">Logout</a><td width="10"/>
    </td>
</tr> 
</table> 

<form name=form method=post action="search-feedback.php" >
<table align="right">
<tr>
    <td><input type=text name=moviefeedback size="12"><input type=submit value="search movie"></td>
</tr> 
</table>
</form>


<form name=form1 method=post action="movieinsert.php" enctype="multipart/form-data"  onsubmit= "return val()">
<table id="two">
  <tr>
    <td>Movie Name</td>
    <td><input type=text name=moviename></td>
  </tr>
  <tr>
    <td>Movie Rating</td>
    <td><input type="radio" name="Mrating" value="1">1
        <input type="radio" name="Mrating" value="2">2
        <input type="radio" name="Mrating" value="3" checked>3
        <input type="radio" name="Mrating" value="4">4
        <input type="radio" name="Mrating" value="5">5
    </td>
  </tr>

  <tr height="30"/>
  <tr>
    <td>Showing #1:  Time ("HH:MM")</td>
    <td><input type=text name=time1 value="16:00"></td>
    <td>Number of tickets</td>
    <td><input type=text name=totaltix1 value=50></td>
  </tr>
  <tr>
    <td>Showing #2:  Time ("HH:MM")</td>
    <td><input type=text name=time2></td>
    <td>Number of tickets</td>
    <td><input type=text name=totaltix2></td>
  </tr>
  <tr>
    <td>Showing #3:  Time ("HH:MM")</td>
    <td><input type=text name=time3></td>
    <td>Number of tickets</td>
    <td><input type=text name=totaltix3></td>
  </tr>
  <tr>
    <td>Showing #4:  Time ("HH:MM")</td>
    <td><input type=text name=time4></td>
    <td>Number of tickets</td>
    <td><input type=text name=totaltix4></td>
  </tr>
  <tr>
    <td>Synopsis</td>
    <td><textarea name=synopsis rows=5 cols=40> </textarea></td>
  </tr>
  <tr>
    <td><label for="file">Picture:</label>
        <input type="file" name="file" id="file"></td>
  </tr>
  <tr>
      <td><input type="submit" value="Insert"></td>
  </tr>
  
</table>
</form>

</body>
</html>